/*
Realistic Unit Modification v4.0 Dialog 
v4.0.0.1 [ALPHA]
Concept & Development by Draper & Raps | [VRC]
*/

_battid = _this select 0;

_array = RUM_ArtyBatts select _battid;
_batlogic = _array select 0;
_fdc = _array select 1;

_grp = _batlogic;

openMap [true,true];
onMapSingleClick "RUM_Arty_movepos = _pos;RUM_ASclick = true";
cutText ["Select a new firing position", "PLAIN DOWN"];
waitUntil {RUM_ASclick};
onMapSingleClick "";
titleFadeOut 0;
RUM_ASclick = false;
openMap [false,false];

_grid = mapGridPosition RUM_Arty_movepos;
player sidechat _fdc + " " + "This is" + " " + RUM_COM_Callsign + ", Adjust Firing position to " + _grid;
sleep (5 + random 5);
leader _grp sideChat "Roger " + RUM_COM_Callsign + ", Wilco, Moving to " + _grid;

RUM_Arty_ServerScoot = [_grp,RUM_Arty_movepos];
publicVariable "RUM_Arty_ServerScoot";
//hint format ["%1",RUM_Arty_movepos];

if(true)exitwith{};